#ifndef BASEWINDOW_H
#define BASEWINDOW_H

#include <QMainWindow>
#include "mainmenu.h"
#include "mainwindow.h"
#include "gameover.h"

namespace Ui {
    class BaseWindow;
}

class BaseWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit BaseWindow(QWidget *parent = 0, QString filepathString = "");
    ~BaseWindow();
    void runGame();
    QString filepath;
    int showMainMenu();
    int showMainWindow(QString command);
    int showGameOver(bool highScore, int speed);

    bool getSound(){ return sound; }
    bool getInvertUpDown() { return invertUpDown; }
    void toggleSound();
    void toggleInvertUpDown();
    void logEvent(QString message);

private:
    Ui::BaseWindow *ui;
    bool sound, invertUpDown;
};

#endif // BASEWINDOW_H
